package com.chrray.position.pojo.dto.util;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @Author: LM
 * @Description:
 * @Date: 2021/2/1 10:PayStatisticsDto
 */
@Data
public class BaseLocalDateDto extends BasePageDto {
    @DateTimeFormat( pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间", example = "2018-10-10")
    private LocalDate startTime;
    @DateTimeFormat( pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间", example = "2020-10-10")
    private LocalDate endTime;
}
